package com.qing.search

import org.apache.spark.Partition

private[search] class LucenePartition(rddId: Int, idx: Int, val path: String)
  extends Partition {

  override def hashCode(): Int = 41 * (41 * (41 + rddId) + idx) + path.hashCode()

  override val index: Int = idx
}
